import {TableColumnProps} from "ant-design-vue";
import {JTableProps} from "../table/table.ts";

export interface JCrudProps {
    name: string;
    table: JCrudTableProps;
}

export interface JCrudTableProps extends Omit<JTableProps, 'columns'> {
    columns: JCrudColumnProps[];
}

export interface JCrudColumnProps<RecordType = unknown> extends TableColumnProps<RecordType> {
    props?: any;
    type?: string;
}